<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>{{ title }}</title>
    <link rel="apple-touch-icon-precomposed" href="/static/images/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="/static/images/favicon.ico" type="image/x-icon" />
    <!-- Bootstrap -->
    <link rel="stylesheet" href="/static/jquery-ui-1.11.4/jquery-ui.css" type="text/css">
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/css/public.css" rel="stylesheet">
    <link href="/static/css/sweetalert.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/static/js/html5shiv.3.7.2.min.js"></script>
    <script src="/static/js/respond.1.4.2.min.js"></script>
    <![endif]-->
    <style>
        footer{padding-top:8px;}
    </style> 
    {% block custom_css %}
    {% endblock %}
</head>
<body>
    <div class="container-fluid">
        {% include "public/header.html" %}

        {% block sidebar %}
        {% endblock %}
        {% include "public/breadcrumb.html" %}
        {% block body %}
        {% endblock %}
    </div>
    {% include "public/footer.html" %}
</body>
</html>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="/static/js/jquery-1.9.1.min.js"></script>
    <script src="/static/jquery-ui-1.11.4/jquery-ui.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="/static/js/sweetalert.min.js"></script>
    <script type="text/javascript">
    function left_table(tit, sel, view){
        $("#"+tit).removeClass("collapsed").attr("aria-expanded","true");
        $("#"+sel).attr("aria-expanded","true").addClass("in");
        $("#"+view).addClass("active");

    }
    </script>    
    <script type="text/javascript">
    /**
     * 使用bootstrap时，让footer固定居于页面底部，
     * 当页面不足一屏时，加上"navbar-fixed-bottom"使之居于一屏底部
     * 当页面超过一屏时，移除"navbar-fixed-bottom"，使之局域页面底部
     * @kangcunhua:2016.6.28
     */
        $(document).ready(function () {
          if($(window).height()==$(document).height()){
            $("#copyright").addClass("navbar-fixed-bottom");
          }
          else{
            $("#copyright").removeClass(" navbar-fixed-bottom");
          }  
        });
    </script>
    {% block js %}
    {% endblock %}